<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
    <%@page import="java.util.*" %>
<%@page import="com.cn.web.dao.GoodsDao" %>
<%@page import="com.cn.web.entity.GoodsEntity" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>商品编辑页面</title>
</head>
<body>
<% 
			GoodsEntity good = (GoodsEntity)request.getAttribute("goodEntity");
%>
<table border="1" width="100%">
		<thead>
			<tr>
				<th>商品名称</th>
				<th>商品货号</th>
				<th>商品库存</th>
				<th>商品属性</th>
				<th>商品成本</th>
				<th>商品卖价</th>
				<th>商品发布时间</th>		
			</tr>
		</thead>
		<tbody>				
				<tr>
				<td><%=good.getGoodsName() %></td>
				<td><%=good.getGoodsCode() %></td>
				<td><%=good.getGoodsStock() %></td>
				<td><%=good.getGoodsProperty() %></td>
				<td><%=good.getGoodsPrice() %></td>
				<td><%=good.getGoodsMarketPrice() %></td>
				<td><%=good.getGoodsIssue() %></td>				
			</tr>	
		</tbody>		
	</table>
	<form action="GoodsController" method="get">
	<table>
		<tr>
			<td>商品名称</td>
			<td><input type="text" name="goodName" value="<%=good.getGoodsName()%>" readonly="readonly"/></td>
		</tr>
		<tr>
			<td>商品货号</td>
			<td><input type="text" name="goodCode" value="<%=good.getGoodsCode() %>"/></td>
		</tr>
		<tr>
			<td>商品库存</td>
			<td><input type="text" name="goodStock" value="<%=good.getGoodsStock() %>"/></td>
		</tr>
		<tr>
			<td>商品属性</td>
			<td><input type="text" name="goodProperty" value="<%=good.getGoodsProperty() %>"/></td>
		</tr>
		<tr>
			<td>商品成本</td>
			<td><input type="text" name="goodPrice" value="<%=good.getGoodsPrice() %>"/></td>
		</tr>
		<tr>
			<td>商品市场价</td>
			<td><input type="text" name="goodMarketPrice" value="<%=good.getGoodsMarketPrice() %>"/></td>
		</tr>
		<tr>
			<td>上架时间</td>
			<td><input type="text" name="goodIssue" value="<%=good.getGoodsIssue() %>"/></td>
		</tr>	
	</table>
 <br><input aline="button" type="submit" value="提交"/>
 </form>
</body>

</html>